package create.abstract_factory;


public class FactoryProducer {
	/**
	 * @param name [animal,shape]
	 */
	public static AbstractFactory getFactory(String name){
		if("animal".equals(name)){
			return new AnimalFactory();
		}else if("shape".equals(name)){
			return new ShapeFactory();
		}
		return null;
	}
}
